﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ex03.GarageLogic
{
    public class FuelMotorbike : FuelVehicle
    {
        private Motorbike m_Motorbike;

        public FuelMotorbike(
            string i_ModelName,
            string i_LicensingNumber,
            List<Wheel> i_Wheels,
            eFuelType i_FuelType,
            float i_MaxFuelLitresAmount,
            eLicenseType i_LicensingType,
            int i_EngineVolume)
            : base(i_ModelName, i_LicensingNumber, i_Wheels, i_FuelType, i_MaxFuelLitresAmount)
        {
            m_Motorbike = new Motorbike(i_LicensingType, i_EngineVolume);
        }

        public eLicenseType LicensingType
        {
            get { return m_Motorbike.LicensingType; }
        }

        public int EngineVolume
        {
            get { return m_Motorbike.EngineVolume; }
        }

        public override Dictionary<string, string> GetAllProperties()
        {
            Dictionary<string, string> properties = base.GetAllProperties();

            properties.Add("Licensing Type", Enum.GetName(typeof(eLicenseType), m_Motorbike.LicensingType));
            properties.Add("Engine Volume", m_Motorbike.EngineVolume.ToString());
            properties.Add("Vehicle Type", "Fuel Motorbike");

            return properties;
        }
    }
}
